<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <input type="text" v-model="zhi1">
        <input type="text" v-model="zhi2">
        <button @click="add">+</button>
        <input type="text" v-model="zhi3">
    </div>
    <script src="/Day1/js/vue.js"></script>
    <script>
        var vm=new Vue({
            el:'#app',
            data:{
                zhi1:'',
                zhi2:'',
                zhi3:'',

        },methods:{
            add(){
                var a=parseInt(this.zhi1);
                var b=parseInt(this.zhi2);
                this.zhi3=a+b;
            }
        }
        })
    </script>
</body>
</html>